import request from '@/utils/request'

export function login(data) {
    return request({
        url: '/duzikai_api_mgr_public_data_admin_user',
        method: 'post',
        data
    })
}

export function userList(data) {
    return request({
        url: '/duzikai_api_mgr_public_user_info',
        method: 'post',
        data
    })
}

export function userAddressList(data) {
    return request({
        url: '/duzikai_api_customer_public_base_info_mgr',
        method: 'post',
        data
    })

}

export function getInfo(token) {
    return request({
        url: '/vue-element-admin/user/info',
        method: 'get',
        params: { token }
    })
}

export function logout() {
    return request({
        url: '/vue-element-admin/user/logout',
        method: 'post'
    })
}

export function clearMemory(params) {
    return request({
        url: '/duzikai_api_customer_public_global_mgr',
        method: 'post'
    })
}
// 获取用户账户信息
export const userAmountInfo=(data)=>{
  return request({
    url:'/application_4_lite_mod_system_use_order_relate_rule_and_record',
    method:'post',
    data
  })
}
